package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YsorderMapper;
import com.ruoyi.system.domain.Ysorder;
import com.ruoyi.system.service.IYsorderService;

/**
 * 营收分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class YsorderServiceImpl implements IYsorderService 
{
    @Autowired
    private YsorderMapper ysorderMapper;

    /**
     * 查询营收分析
     * 
     * @param oId 营收分析主键
     * @return 营收分析
     */
    @Override
    public Ysorder selectYsorderByOId(Integer oId)
    {
        return ysorderMapper.selectYsorderByOId(oId);
    }

    /**
     * 查询营收分析列表
     * 
//     * @param ysorder 营收分析
     * @return 营收分析
     */
    @Override
    public List<Map<String,Object>> selectYsorderList(@Param(value = "csName") String csName, @Param(value = "dstime") String dstime)
    {
        return ysorderMapper.selectYsorderList(csName,dstime);
    }

    /**
     * 新增营收分析
     * 
     * @param ysorder 营收分析
     * @return 结果
     */
    @Override
    public int insertYsorder(Ysorder ysorder)
    {
        return ysorderMapper.insertYsorder(ysorder);
    }

    /**
     * 修改营收分析
     * 
     * @param ysorder 营收分析
     * @return 结果
     */
    @Override
    public int updateYsorder(Ysorder ysorder)
    {
        return ysorderMapper.updateYsorder(ysorder);
    }

    /**
     * 批量删除营收分析
     * 
     * @param oIds 需要删除的营收分析主键
     * @return 结果
     */
    @Override
    public int deleteYsorderByOIds(Integer[] oIds)
    {
        return ysorderMapper.deleteYsorderByOIds(oIds);
    }

    /**
     * 删除营收分析信息
     * 
     * @param oId 营收分析主键
     * @return 结果
     */
    @Override
    public int deleteYsorderByOId(Integer oId)
    {
        return ysorderMapper.deleteYsorderByOId(oId);
    }
}
